package com.haoyeteng.sxbd.core.constant;

/**
 * YesOrNo
 */
public enum YesOrNoEnum {
	/**
	 * 1是
	 */
	YES((short)1), 
	/**
	 * 0否
	 */
	NO((short)0);
	
	// 定义私有变量
	private short value;
	
	// 构造函数，枚举类型只能为私有
	private YesOrNoEnum(short val) {
		this.value = val;
	}

	@Override
	public String toString() {
		return String.valueOf(this.value);
	}
	
	public short val() {
		return this.value;
	}

	public String stringVal() {
		return String.valueOf(this.value);
	}
}
